import { RegisterPage } from '../root';
import { schema as IndexSchema } from './list';
import {schema as editSchema} from "./edit";
import {schema as createSchema} from "./create";


RegisterPage({
    path: 'news',
    label: '消息公告',
    icon: 'fa fa-flag',
    acl: 'news:list',
    children: [
        {
            path: 'list',
            label: '公告列表',
            schema: IndexSchema,
            url: '/news/list',
            acl: 'news:list',
        },
        {
            path: 'create',
            label: '发布公告',
            schema: createSchema,
            url: '/news/create',
            acl: 'news:list',
        },
        {
            path: '/news/edit/:id',
            label: '编辑公告',
            acl: 'news:list',
            schema: editSchema
        },
    ]
});
